//
//  StrategyDetailCell.m
//  Full_House
//
//  Created by 张忱 on 15-6-3.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "StrategyDetailCell.h"

@implementation StrategyDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.detailImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.detailImage];
        [_detailImage release];
        
        self.detailLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.detailLable];
        [_detailLable release];
        
        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height / 2;
    
    self.detailImage.frame =CGRectMake(10, 10, width - 20, height);
    self.detailLable.frame =CGRectMake(10, height, width - 20, height);
    
    
    
}



- (void)dealloc
{
    [_detailImage release];
    [_detailLable release];
    [super dealloc];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
